<%-- 
    Document   : test
    Created on : Nov 12, 2012, 11:58:21 AM
    Author     : kiendn
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript" src="js/jquery-latest.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $("#btn").click(function(){
                    $.ajax({
                        type: "GET",
                        url: "DI_Controller",
                        data:"action=convert",
                        success: function(msg){
                            if (msg == 1){
                                alert("convert completed");
                            }else{
                               alert("convert failed");
                            }
                        }
                    }); 
                });
            });
        </script>
    </head>
    <body>
        <h1>Hello World!</h1>
        <input type="button" value="convert data" id="btn"/>
    </body>
</html>
